/*
 *Copyright © 2015 zhaorongbao
 *招融宝
 *http://zhaorongbao.com
 *All rights reserved.
 */
package com.hanhai.zrb.api.biz.service;

public interface SequenceService {

	// 强行开启一个新的事务
	Long getNextBySequenceName(String sequenceName);

	/**
	 * 如果超过maxId，则重置为1
	 */
	Long getNextBySequenceName(String sequenceName, Long maxId);

}
